package com.second.model.dto.reviews;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.second.model.pojo.FCommentPicture;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

import java.util.Date;

/**
 * 本类用来演示: 用户评论
 *
 * @author: MuTing
 * @date: 2022-05-08 13:48
 */
@Data
public class FUserCommentDto {

    private Integer commentId;

    private Integer userId;

    private String userName;

    private String headPicture;

    private String content;
    //计算星级
    private Double scores;

    private Integer praise;

    //查看这个用户是否对这个点过赞
    private Integer status;
    //@ResponseBody
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    //前端传过来一个日期字符绑定到这个属性
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    private String url1;

    private String url2;

    private String url3;

    private String url4;

    private String url5;

    private String url6;
    /**
     * 总页数
     */
    private Integer page;
    /**
     * 当前页
     */
    private Integer current;
}
